﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SharingCenter.Web.User.Events
{
    using SharingCenter.Web.Classes;
    using SharingCenter.Web.Classes.enums;
    public partial class Latest : EventPageBase
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            LinqDataSource1.Selecting += new EventHandler<LinqDataSourceSelectEventArgs>(LinqDataSource1_Selecting);
        }

        void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e)
        {
            e.WhereParameters["StartDate"] = DateTime.Now;
            e.WhereParameters["EventSource"] = EntityType.GroupEvent;
        }
    }
}
